package com.linran.gmail.service.impl;

import com.alibaba.dubbo.config.annotation.Reference;
import com.linran.gmail.bean.UserAddress;
import com.linran.gmail.service.OrderService;
import com.linran.gmail.service.UserService;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class OrderServiceImpl implements OrderService {

    @Reference
    UserService userService;

    @Override
    public void initOrder(String userId) {
        //1.查询用户收货地址
        List<UserAddress> userAddressList = userService.getUserAddressList(userId);
        System.out.println(userAddressList);
    }
}